#ifndef __UART_H__
#define __UART_H__



#include "stm32f10x.h"


#define 	DEBUG_UART								(USART3)





void USART1_HAL_Init(uint32_t baud);
void USART2_HAL_Init(uint32_t baud);
void USART3_HAL_Init(uint32_t baud);
void UART4_HAL_Init(uint32_t baud);
void UART5_HAL_Init(uint32_t baud);





void USART_Send_Bin(USART_TypeDef* USARTx,uint8_t *send_buff,uint16_t length);
void USART_Send_Data(USART_TypeDef* USARTx,uint8_t *send_buff,uint16_t length);
void USART_Send_String(USART_TypeDef* USARTx, uint8_t *string);

void UART5_SendDataIT(uint8_t *buf, uint16_t len);
void USART1_SendDataIT(uint8_t *buf, uint16_t len);
void USART2_SendDataIT(uint8_t *buf, uint16_t len);


#endif





